package com.yunhe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID=1L;

    @TableId(value ="id",type = IdType.AUTO)
    @ApiModelProperty("用户编号")
    private Long id;
    @ApiModelProperty("账号")
    private String no;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("年龄")
    private Integer age;
    @ApiModelProperty("性别")
    private Integer sex;
    @ApiModelProperty("联系方式")
    private String phone;

    @TableField("role_id")
    @ApiModelProperty("角色编号")
    private Integer roleId;
    @ApiModelProperty("是否可用")
    @TableField("isValid")
    private String isValid;
}